package com.lifo.shoppingcart.bean;

import lombok.Data;
import lombok.ToString;

/**
 * Created by Administrator on 2018/6/25 0025.
 */
@Data
@ToString
public class HfShoppingCart {
    private int cartId;
    private long shopId;
    private Integer hfGoodId;
    private String createDate;
    private String createTime;
    private String color;
    private String size;
    private int userId;
    private long taobaoPrice;
    private long wholesalePrice;
    private String goodTitle;
    private int count;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        HfShoppingCart that = (HfShoppingCart) o;

        return shopId == that.shopId;

    }

    @Override
    public int hashCode() {
        return (int) (shopId ^ (shopId >>> 32));
    }
}
